package com.yll.dao;

import com.yll.domain.Student;
import com.yll.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

    //登录功能
    User findByUsernameAndPassword(@Param("username") String username, @Param("password")String password);

    //添加功能
    void add(Student student);

    //分页查询
    List<Student> findAll();

    //根据ID查询
    Student findById(Integer id);
}
